/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.caresms.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link City_Master}.
 * </p>
 *
 * @author    cc
 * @see       City_Master
 * @generated
 */
public class City_MasterWrapper implements City_Master,
	ModelWrapper<City_Master> {
	public City_MasterWrapper(City_Master city_Master) {
		_city_Master = city_Master;
	}

	public Class<?> getModelClass() {
		return City_Master.class;
	}

	public String getModelClassName() {
		return City_Master.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("CityId", getCityId());
		attributes.put("CountryId", getCountryId());
		attributes.put("CityName", getCityName());
		attributes.put("field1", getField1());
		attributes.put("field2", getField2());
		attributes.put("field3", getField3());
		attributes.put("field4", getField4());
		attributes.put("field5", getField5());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long CityId = (Long)attributes.get("CityId");

		if (CityId != null) {
			setCityId(CityId);
		}

		Long CountryId = (Long)attributes.get("CountryId");

		if (CountryId != null) {
			setCountryId(CountryId);
		}

		String CityName = (String)attributes.get("CityName");

		if (CityName != null) {
			setCityName(CityName);
		}

		String field1 = (String)attributes.get("field1");

		if (field1 != null) {
			setField1(field1);
		}

		Boolean field2 = (Boolean)attributes.get("field2");

		if (field2 != null) {
			setField2(field2);
		}

		Integer field3 = (Integer)attributes.get("field3");

		if (field3 != null) {
			setField3(field3);
		}

		Date field4 = (Date)attributes.get("field4");

		if (field4 != null) {
			setField4(field4);
		}

		String field5 = (String)attributes.get("field5");

		if (field5 != null) {
			setField5(field5);
		}
	}

	/**
	* Returns the primary key of this city_ master.
	*
	* @return the primary key of this city_ master
	*/
	public long getPrimaryKey() {
		return _city_Master.getPrimaryKey();
	}

	/**
	* Sets the primary key of this city_ master.
	*
	* @param primaryKey the primary key of this city_ master
	*/
	public void setPrimaryKey(long primaryKey) {
		_city_Master.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the city ID of this city_ master.
	*
	* @return the city ID of this city_ master
	*/
	public long getCityId() {
		return _city_Master.getCityId();
	}

	/**
	* Sets the city ID of this city_ master.
	*
	* @param CityId the city ID of this city_ master
	*/
	public void setCityId(long CityId) {
		_city_Master.setCityId(CityId);
	}

	/**
	* Returns the country ID of this city_ master.
	*
	* @return the country ID of this city_ master
	*/
	public long getCountryId() {
		return _city_Master.getCountryId();
	}

	/**
	* Sets the country ID of this city_ master.
	*
	* @param CountryId the country ID of this city_ master
	*/
	public void setCountryId(long CountryId) {
		_city_Master.setCountryId(CountryId);
	}

	/**
	* Returns the city name of this city_ master.
	*
	* @return the city name of this city_ master
	*/
	public java.lang.String getCityName() {
		return _city_Master.getCityName();
	}

	/**
	* Sets the city name of this city_ master.
	*
	* @param CityName the city name of this city_ master
	*/
	public void setCityName(java.lang.String CityName) {
		_city_Master.setCityName(CityName);
	}

	/**
	* Returns the field1 of this city_ master.
	*
	* @return the field1 of this city_ master
	*/
	public java.lang.String getField1() {
		return _city_Master.getField1();
	}

	/**
	* Sets the field1 of this city_ master.
	*
	* @param field1 the field1 of this city_ master
	*/
	public void setField1(java.lang.String field1) {
		_city_Master.setField1(field1);
	}

	/**
	* Returns the field2 of this city_ master.
	*
	* @return the field2 of this city_ master
	*/
	public boolean getField2() {
		return _city_Master.getField2();
	}

	/**
	* Returns <code>true</code> if this city_ master is field2.
	*
	* @return <code>true</code> if this city_ master is field2; <code>false</code> otherwise
	*/
	public boolean isField2() {
		return _city_Master.isField2();
	}

	/**
	* Sets whether this city_ master is field2.
	*
	* @param field2 the field2 of this city_ master
	*/
	public void setField2(boolean field2) {
		_city_Master.setField2(field2);
	}

	/**
	* Returns the field3 of this city_ master.
	*
	* @return the field3 of this city_ master
	*/
	public int getField3() {
		return _city_Master.getField3();
	}

	/**
	* Sets the field3 of this city_ master.
	*
	* @param field3 the field3 of this city_ master
	*/
	public void setField3(int field3) {
		_city_Master.setField3(field3);
	}

	/**
	* Returns the field4 of this city_ master.
	*
	* @return the field4 of this city_ master
	*/
	public java.util.Date getField4() {
		return _city_Master.getField4();
	}

	/**
	* Sets the field4 of this city_ master.
	*
	* @param field4 the field4 of this city_ master
	*/
	public void setField4(java.util.Date field4) {
		_city_Master.setField4(field4);
	}

	/**
	* Returns the field5 of this city_ master.
	*
	* @return the field5 of this city_ master
	*/
	public java.lang.String getField5() {
		return _city_Master.getField5();
	}

	/**
	* Sets the field5 of this city_ master.
	*
	* @param field5 the field5 of this city_ master
	*/
	public void setField5(java.lang.String field5) {
		_city_Master.setField5(field5);
	}

	public boolean isNew() {
		return _city_Master.isNew();
	}

	public void setNew(boolean n) {
		_city_Master.setNew(n);
	}

	public boolean isCachedModel() {
		return _city_Master.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_city_Master.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _city_Master.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _city_Master.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_city_Master.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _city_Master.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_city_Master.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new City_MasterWrapper((City_Master)_city_Master.clone());
	}

	public int compareTo(com.caresms.model.City_Master city_Master) {
		return _city_Master.compareTo(city_Master);
	}

	@Override
	public int hashCode() {
		return _city_Master.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.caresms.model.City_Master> toCacheModel() {
		return _city_Master.toCacheModel();
	}

	public com.caresms.model.City_Master toEscapedModel() {
		return new City_MasterWrapper(_city_Master.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _city_Master.toString();
	}

	public java.lang.String toXmlString() {
		return _city_Master.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_city_Master.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public City_Master getWrappedCity_Master() {
		return _city_Master;
	}

	public City_Master getWrappedModel() {
		return _city_Master;
	}

	public void resetOriginalValues() {
		_city_Master.resetOriginalValues();
	}

	private City_Master _city_Master;
}